{{useCss "/app-pages/css/main.scss",["","/main.html"]}}
<form method="post" action="http://127.0.0.1:1333/xuezi/name">
	<input type="file" name="aaa" />
	<input type="submit"/>
</form>
<div class="main">
	<div class="maintop">
		<div class="box">
			<div class="left">
				<div class="imgbox">
					{{#each $Cache.main.banner.list}}
					<img bind-src="{{url}}" />
					{{/each}}
				</div>
			</div>
			<div class="right">
				<div class="button" event-click="{{'$Event.main.release_new_post'}}">发表新帖</div>
				<div class="user">
					<div class="item">
						<img bind-src="{{loginer.head_img||loginer.info.header_url||'/images/public/noavatar_small.gif'}}?imageView2/1/w/45/h/45" />
						{{#if loginer}}
						<div class="name">{{loginer.nickname||loginer.info.nick_name}}</div>
						{{/if}}
					</div>
					<div class="item">
						{{#if loginer}}
						<href to="/user/main.html" class="method">资料</href>
						<href to="/user/post.html" class="method">话题</href>
						<a class="method last" event-click="{{'$Event.top.loginout'}}">退出</a>
						{{#else}}
						<href to="/login.html" class="method">登陆</href>
						<href to="/login.html" class="method last">注册</href>
						{{/if}}
					</div>
				</div>
			</div>
		</div>
	</div>

	<div class="mainbody">
		<div class="box">
			{{#each $Cache.main.post_list}}
			<div class="item">
				<div class="headimg">
					<img bind-src="{{preview_img||'/images/public/39_avatar_small.jpg'}}?imageView2/1/w/48/h/48" />
				</div>
				<div class="content">
					<div class="num">{{replytotal||0}}/{{viewtotal||0}}</div>
					<div class="title">
						<href to="/article.html?_id={{_id}}">{{title}}</href>
					</div>
					<div class="module">{{_module_name}}</div>
					<div class="author">{{creater.name||creater.info.name}}，{{#Time createtime}}</div>
				</div>
			</div>
			{{/each}}
			<div class="pagebox">
	            <a class="button icon-angle-left" event-click="{{'$Event.main.prePostPage'}}"></a>
	            {{#each $Cache.main.pages}}
	            <href to="/main.html?page={{$Index}}&num={{$Top.$Cache.main.page_post_num}}" class="{{($Top.$Cache.main.current_post_page==$Index)&&'focus'}}">{{$Index+1}}</href>
	            {{/each}}
	            <a class="button icon-angle-right" event-click="{{'$Event.main.nextPostPage'}}"></a>
	        </div>
		</div>
	</div>
</div>
